package com.asion.vmovie.ui.MVPPresenter;

import com.asion.vmovie.beans.ChannalsBean;
import com.asion.vmovie.ui.MVPContract.PingDapContract;

/**
 * Created by asion on 16-10-18.
 */

public class PingDaoPresenter extends PingDapContract.Presenter {

    @Override
    public void onStart() {
        super.onStart();
        getPingDaoData();
    }

    @Override
    public void getPingDaoData() {
        mModel.getPingDaoData(new PingDapContract.OnGetPingDaoSuccess() {
            @Override
            public void onGetSuccess(ChannalsBean channalsBean) {
                mView.showDataSuccess(channalsBean);
            }

            @Override
            public void onGetError(Throwable throwable) {
                mView.showDataError(throwable);
            }
        });
    }
}
